
package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.SystemNotice;
import cn.wolfcode.trip.base.query.SystemNoticeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SystemNoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemNotice record);

    SystemNotice selectByPrimaryKey(Long id);

    List<SystemNotice> selectAll();

    int updateByPrimaryKey(SystemNotice record);

    List<SystemNotice> selectForList(SystemNoticeQuery qo);

    Integer selectForCount(Long userId);

    List<SystemNotice> selectForPage(SystemNoticeQuery qo);

    void updateStateByUserId(@Param("isnew") int isnew,@Param("userId") Long userId);
}